"use strict";

var _siema = require("./siema.common");

var _siema2 = _interopRequireDefault(_siema);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

window.__Siema = _siema2.default;

(function () {
    var template = function template(self) {
        self.$uid = "slider_" + Math.random().toString(36).substring(7);
        return "<div slider-id=\"" + self.$uid + "\">" + self.innerHTML + "</div>  ";
    };

    document.auiDefineElement("aux-slider", {
        template: template,
        props: {},
        created: function created(self) {
            self.$ele.root = self.children[0];
            self.$control = new _siema2.default({
                selector: "[slider-id=\"" + self.$uid + "\"]"
            });
            self.next = function () {
                self.$control.next();
            };
        }
    });
})();